A CStatic descendant which creates a single or two-tone beveled line, oriented horizontally or vertically.
More...
A CStatic descendant which creates a single or two-tone beveled line, oriented horizontally or vertically.
This simple CStatic descendant handles WM_PAINT to draw a transparent box with a single or two-tone beveled line at either the top or left side. It also responds to WM_SYSCOLORCHANGE or WM_THEMECHANGED messages by updating the pen colors to new, correct colors.
Typical usage is depicted below:
bevel1.SubclassStatic(GetDlgItem(IDC_BEVEL1));
.
.
.
bevel1.UnSubclassStatic();
Definition at line 48 of file Bevel.h.
void BIS_WTL_CONTROLS::CBevel::SubclassStatic |
( |
HWND |
hwnd | ) |
|
Subclass a static control window; modify window style to provide the intended graphical appearance.
The WS_EX_TRANSPARENT flag is added to the window style, and a series of flags are removed. The pens
used to draw the bevel are created.
- Parameters
-
hwnd | Handle to the control window to subclass. |
- Return values
-
Definition at line 50 of file Bevel.cpp.